package com.wing.order.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wing.order.model.entity.OrderDeliveryLabel;
import com.wing.order.model.response.OrderDeliveryLabelVO;
import com.wing.warehouse.model.entity.PalletBoxList;
import com.wing.warehouse.model.response.PalletBoxListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 签收单扫描的包装条码-Dao
 *
 * @author
 */
@Mapper
public interface OrderDeliveryLabelDao extends BaseMapper<OrderDeliveryLabel> {

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<OrderDeliveryLabelVO> list4app(@Param("params") Map<String, Object> params);

    /**
     * 分页列表-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<OrderDeliveryLabelVO> list4app(@Param("page") Page<OrderDeliveryLabelVO> page, @Param("params") Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    OrderDeliveryLabelVO get4appById(Long id);


    List<OrderDeliveryLabelVO> getDeliveryLabel(@Param("signId") Long signId,@Param("labelCode") String labelCode,@Param("boxId")Long boxId,@Param("queryFlag")String queryFlag,@Param("signDetailId") Long signDetailId);

    Integer countNotFinish(Long signDetailId);

    List<PalletBoxListVO> getBoxBySignId(@Param("signId") Long signId,@Param("signDetailId") Long signDetailId);

}
